package designpattern.single.Enum;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Client {
    public static void main(String[] args) {
       new Thread(() -> {
           EnumSingle instance = EnumSingle.INSTANCE.getInstance();
           System.out.println(instance.hashCode());
       }).start();
        new Thread(() -> {
            EnumSingle instance = EnumSingle.INSTANCE.getInstance();
            System.out.println(instance.hashCode());
        }).start();
    }
}
